home *** CD-ROM | disk | FTP | other *** search
- diff -cr e2fsprogs-0.5a/lib/ext2fs/bitops.c e2fsprogs-0.5a.new/lib/ext2fs/bitops.c
- *** e2fsprogs-0.5a/lib/ext2fs/bitops.c Mon Jan 3 13:30:35 1994
- --- e2fsprogs-0.5a.new/lib/ext2fs/bitops.c Sun Aug 7 10:58:29 1994
- ***************
- *** 15,21 ****
-
- #include "ext2fs.h"
-
- ! #if (!defined(__i386__) && !defined(__i486__) && !defined(__i586__))
-
- /*
- * For the benefit of those who are trying to port Linux to another
- --- 15,22 ----
-
- #include "ext2fs.h"
-
- ! #if (!defined(__i386__) && !defined(__i486__) && !defined(__i586__) \
- ! && !defined(__mc68000__))
-
- /*
- * For the benefit of those who are trying to port Linux to another
- ***************
- *** 69,75 ****
- mask = 1 << (nr & 0x1f);
- return ((mask & *ADDR) != 0);
- }
- ! #endif /* !i386 */
-
- /*
- * These are routines print warning messages; they are called by
- --- 70,76 ----
- mask = 1 << (nr & 0x1f);
- return ((mask & *ADDR) != 0);
- }
- ! #endif /* !x86 or mc680x0 */
-
- /*
- * These are routines print warning messages; they are called by
- diff -cr e2fsprogs-0.5a/lib/ext2fs/bitops.h e2fsprogs-0.5a.new/lib/ext2fs/bitops.h
- *** e2fsprogs-0.5a/lib/ext2fs/bitops.h Mon Jan 3 13:30:18 1994
- --- e2fsprogs-0.5a.new/lib/ext2fs/bitops.h Sun Aug 7 11:11:28 1994
- ***************
- *** 99,104 ****
- --- 99,138 ----
-
- #endif /* i386 */
-
- + #ifdef __mc68000__
- +
- + _INLINE_ int set_bit(int nr,void * addr)
- + {
- + char retval;
- +
- + __asm__ __volatile__ ("bfset %2@{%1:#1}; sne %0"
- + : "=d" (retval) : "d" (nr), "a" (addr));
- +
- + return retval;
- + }
- +
- + _INLINE_ int clear_bit(int nr, void * addr)
- + {
- + char retval;
- +
- + __asm__ __volatile__ ("bfclr %2@{%1:#1}; sne %0"
- + : "=d" (retval) : "d" (nr), "a" (addr));
- +
- + return retval;
- + }
- +
- + _INLINE_ int test_bit(int nr, const void * addr)
- + {
- + char retval;
- +
- + __asm__ __volatile__ ("bftst %2@{%1:#1}; sne %0"
- + : "=d" (retval) : "d" (nr), "a" (addr));
- +
- + return retval;
- + }
- +
- + #endif
- +
- _INLINE_ void ext2fs_mark_block_bitmap(ext2_filsys fs, char *bitmap,
- int block)
- {
-